package cn.smbms.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/user")
public class UserController {

    private Logger logger = Logger.getLogger(UserController.class);

    //示例8
    @RequestMapping("/welcome")
    public String welcome(@RequestParam String username){
        logger.info("welcome,"+username);
        return "index";
    }
}
